package scau.redi.social_platform.common.staticCode;

public enum ResponseCode {

    SUCCESS(0,"操作成功"),
    ERROR(1,"操作失败"),
    NEED_LOGIN(10,"请先登录"),
    ILLEGAL_ARGUMENT(2,"非法参数"),
    BAN(3,"已被禁言"),
    ILLEGAL_PERMIT(4,"没有管理员权限");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc){
        this.code=code;
        this.desc=desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
